package com.newly.api.business.feign;

import com.newly.common.base.constants.ServerUriConstant;
import com.newly.common.base.entity.R;
import com.newly.common.base.entity.business.Dto.MessageDto;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @anthor sbq
 * @date 2021/12/2 15:07
 */
@Api(tags = "消息中心api")
@FeignClient(path = ServerUriConstant.NEWLY_BUSINESS_MESSAGE, name = ServerUriConstant.NEWLY_BUSINESS_SERVICE_NAME)
public interface MessageClient {

    @ApiOperation("分页查询消息列表")
    @GetMapping("/getPage")
    R getPage(MessageDto messageDto);

    @ApiOperation("批量改变消息状态")
    @PostMapping("/changeStatus")
    R changeStatus(@RequestBody Long[] ids);

}
